# coding=utf-8
from django.conf.urls import url
import views
urlpatterns = [
    url(r'^register$', views.RegisterView.as_view(), name="register"),
    url(r'^login$', views.LoginView.as_view(), name="login"),
    url(r'^logout$', views.LogoutView.as_view(), name="logout"),
    url(r'^index$', views.IndexView.as_view(), name="index"),
    url(r'^project$', views.ProjectView.as_view(),name="project"),
    url(r'project/update$',views.ProjectViewUpdate.as_view(),name="projectUpdate"),
    url(r'project/delete$',views.ProjectViewDelete.as_view(),name="projectDelete"),
    url(r'^project/job/(?P<project_id>\d+)$', views.JobView.as_view(), name="job"),
    url(r'job/update$',views.JobViewUpdate.as_view(),name="jobUpdate"),
    url(r'job/delete$',views.JobViewDelete.as_view(),name="jobDelete"),
    url(r'^project/job/task/(?P<job_id>\d+)$', views.TaskView.as_view(), name="task"),
    url(r'task/delete$',views.TaskDeleteView.as_view(),name="taskDelete"),
    url(r'task/update$',views.TaskUpdateView.as_view(),name="taskUpdate")
]